- page_title "标签"
= render "projects/commits/header_title"
= render "projects/commits/head"

.row-content-block
  - if can? current_user, :push_code, @project
    .pull-right
      = link_to new_namespace_project_tag_path(@project.namespace, @project), class: 'btn btn-create new-tag-btn' do
        = icon('plus')
        新标签
  .oneline
    标签用于标识历史重要版本

.tags
  - unless @tags.empty?
    %ul.content-list
      - @tags.each do |tag|
        = render 'tag', tag: @repository.find_tag(tag)

    = paginate @tags, theme: 'gitlab'

  - else
    .nothing-here-block
      版本库没有标签。
      %br
      %small
        使用 git tag 命令增加标签：
        %br
        %span.monospace git tag -a v1.4 -m 'version 1.4'
